package org.dftproject.genesis.ui.presentation;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.presentations.AbstractPresentationFactory;
import org.eclipse.ui.presentations.IStackPresentationSite;
import org.eclipse.ui.presentations.StackPresentation;

public class PresentationFactory extends AbstractPresentationFactory {

	public static final String ID = PresentationFactory.class.getName();

	@Override
	public StackPresentation createEditorPresentation(Composite parent, IStackPresentationSite site) {
		return new TabControlPresentation(parent, site);
	}

	@Override
	public StackPresentation createViewPresentation(Composite parent, IStackPresentationSite site) {
		return new StackControlPresentation(parent, site);
	}

	@Override
	public StackPresentation createStandaloneViewPresentation(Composite parent, IStackPresentationSite site, boolean showTitle) {
		return new StackControlPresentation(parent, site);
	}
	
}
